package com.xiaoyu.lanling.feature.location

import com.xiaoyu.base.net.RequestCreator
import com.xiaoyu.lanling.common.config.HttpConfig
import com.xiaoyu.lanling.event.location.AddressEvent

object LocationData {

    fun getAddress(requestTag: Any, longitude: Double, latitude: Double) {
        RequestCreator.create<AddressEvent>(requestTag, AddressEvent::class.java)
                .setRequestUrl(HttpConfig.USER_GET_LOCATION)
                .addQueryData("lon", longitude)
                .addQueryData("lat", latitude)
                .enqueue();
    }
}
